Optimal. Leaf size=43 \[ -\frac{(A b-a B) \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{a^{3/2} \sqrt{b}}-\frac{A}{a x} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0652404, antiderivative size = 43, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.1 \[ -\frac{(A b-a B) \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{a^{3/2} \sqrt{b}}-\frac{A}{a x} \]
Antiderivative was successfully verified.
[In] Int[(A + B*x^2)/(x^2*(a + b*x^2)),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 9.8628, size = 36, normalized size = 0.84 \[ - \frac{A}{a x} - \frac{\left (A b - B a\right ) \operatorname{atan}{\left (\frac{\sqrt{b} x}{\sqrt{a}} \right )}}{a^{\frac{3}{2}} \sqrt{b}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((B*x**2+A)/x**2/(b*x**2+a),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0435932, size = 42, normalized size = 0.98 \[ \frac{(a B-A b) \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{a^{3/2} \sqrt{b}}-\frac{A}{a x} \]
Antiderivative was successfully verified.
[In] Integrate[(A + B*x^2)/(x^2*(a + b*x^2)),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.005, size = 48, normalized size = 1.1 \[ -{\frac{Ab}{a}\arctan \left ({bx{\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}}+{B\arctan \left ({bx{\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}}-{\frac{A}{ax}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((B*x^2+A)/x^2/(b*x^2+a),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x^2 + A)/((b*x^2 + a)*x^2),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.236248, size = 1, normalized size = 0.02 \[ \left [-\frac{{\left (B a - A b\right )} x \log \left (-\frac{2 \, a b x -{\left (b x^{2} - a\right )} \sqrt{-a b}}{b x^{2} + a}\right ) + 2 \, \sqrt{-a b} A}{2 \, \sqrt{-a b} a x}, \frac{{\left (B a - A b\right )} x \arctan \left (\frac{\sqrt{a b} x}{a}\right ) - \sqrt{a b} A}{\sqrt{a b} a x}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x^2 + A)/((b*x^2 + a)*x^2),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 1.85375, size = 82, normalized size = 1.91 \[ - \frac{A}{a x} - \frac{\sqrt{- \frac{1}{a^{3} b}} \left (- A b + B a\right ) \log{\left (- a^{2} \sqrt{- \frac{1}{a^{3} b}} + x \right )}}{2} + \frac{\sqrt{- \frac{1}{a^{3} b}} \left (- A b + B a\right ) \log{\left (a^{2} \sqrt{- \frac{1}{a^{3} b}} + x \right )}}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x**2+A)/x**2/(b*x**2+a),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.22596, size = 49, normalized size = 1.14 \[ \frac{{\left (B a - A b\right )} \arctan \left (\frac{b x}{\sqrt{a b}}\right )}{\sqrt{a b} a} - \frac{A}{a x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x^2 + A)/((b*x^2 + a)*x^2),x, algorithm="giac")
[Out]